home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
drivers
/
win31xtl.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-07-16
|
5KB
|
132 lines
echo off
cls
if ()==(%1) goto NO_ARG
if ()==(%2) goto NO_ARG
if not exist %2\win.com goto INVPATH
if (A:)==(%1) goto DO_IT
if (a:)==(%1) goto DO_IT
if (B:)==(%1) goto DO_IT
if (b:)==(%1) goto DO_IT
goto BADDRV
:NO_ARG
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
:ERR
echo This batch file needs to know where to extract the drivers
echo and where your Windows directory is located. The drivers
echo themselves are extracted to floppy, the GSTUNE Utility is
echo extracted to the Windows directory.
echo
echo ┌┬────────────────────────────────────────────┬┐
echo ││ Usage: INSTALL [Drive] [Windows Directory] ││
echo └┴────────────────────────────────────────────┴┘
echo
echo Example: INSTALL A: C:\WINDOWS
echo
echo The above example will place the Crystal Font drivers
echo on a floppy in drive A: and copy the GSTUNE Utility to
echo C:\WINDOWS.
echo
echo ATI Customer Support (416) 756-0711 9am-5:30pm EST
echo
goto DONE
:INVPATH
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo
echo ERROR: Invalid path "%2"
goto ERR
:BADDRV
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo
echo ERROR: Invalid drive "%1". Must be a floppy.
goto ERR
:DO_IT
cls
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo ─────────────────
echo This batch file will conveniently extract the
echo Crystal Font drivers to a floppy and the GSTUNE
echo Utility to your Windows directory.
echo
echo PLEASE PLACE A BLANK FORMATED FLOPPY IN DRIVE %1
echo ┌─────────────────────────────────────────┐
echo │ If you are prompted to overwrite a file │
echo │ press Y for YES │
echo └─────────────────────────────────────────┘
echo Press any key to continue the installation
echo or CONTROL-C to abort.
echo
pause >nul
cls
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo ─────────────────
echo Decompressing the Crystal Font driver...
xtal31 /e%1
if errorlevel == 0 goto OK
goto ERROR
:OK
echo Process Complete. Press any key to install the GSTUNE Utility.
echo
pause >nul
cls
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo Decompressing GSTUNE...
gstune31 /E%2
if errorlevel == 0 goto OK2
goto ERROR2
:OK2
cls
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo ─────────────────
echo ╒══════════════════════════╕
echo │ Installation successful! │
echo ╘══════════════════════════╛
echo
echo The first step of the Windows 3.1 drivers is now complete. The next
echo step is to tell Windows to use these drivers. Please read the README.TXT
echo file for instructions on how to tell Windows to use these new drivers.
echo Also read GSTUNE.TXT to discover how to complete the installation of the
echo GSTUNE utility.
echo
echo README.TXT is located in "%1" floppy disk that was just created.
echo GSTUNE.TXT is located in your "%2" directory.
echo
echo IMPORTANT: Failure to read the above readme file will result in the
echo driver not functioning.
echo
goto DONE
:ERROR
echo ERROR: Problem extracting Crystal Font driver.
goto OTHER
:ERROR2
echo ERROR: Problem extracting GSTUNE Utility.
:OTHER
echo ┌─────────────────────────────────────┐
echo │** Crystal Font Window 3.1 Drivers **│
echo └─────────────────────────────────────┘
echo ─────────────────
echo ╒═════════════════════╕
echo │ Installation Failed │
echo ╘═════════════════════╛
echo
echo Please check the drive/path that you specified and ensure it is
echo correct. If this batch file continues to present problems, please
echo call ATI for assistance.
echo
echo ATI Customer Support (416) 756-0711 9am-5:30pm EST
echo
:DONE